<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Test::Unit::UI::Console::TestRunner</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Test::Unit::UI::Console::TestRunner</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../../files/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner_rb.html">
                vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="../../../../Object.html">
                Object
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000618">finished</a>&nbsp;&nbsp;
      <a href="#M000617">finished_with_rspec</a>&nbsp;&nbsp;
      <a href="#M000620">setup_mediator</a>&nbsp;&nbsp;
      <a href="#M000619">setup_mediator_with_rspec</a>&nbsp;&nbsp;
      <a href="#M000612">started</a>&nbsp;&nbsp;
      <a href="#M000611">started_with_rspec</a>&nbsp;&nbsp;
      <a href="#M000616">test_finished</a>&nbsp;&nbsp;
      <a href="#M000615">test_finished_with_rspec</a>&nbsp;&nbsp;
      <a href="#M000614">test_started</a>&nbsp;&nbsp;
      <a href="#M000613">test_started_with_rspec</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">



    <div id="aliases-list">
      <h3 class="section-bar">External Aliases</h3>

      <div class="name-list">
                        <table summary="aliases">
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">started</td>
          <td>-&gt;</td>
          <td class="context-item-value">started_without_rspec</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">test_started</td>
          <td>-&gt;</td>
          <td class="context-item-value">test_started_without_rspec</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">test_finished</td>
          <td>-&gt;</td>
          <td class="context-item-value">test_finished_without_rspec</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">finished</td>
          <td>-&gt;</td>
          <td class="context-item-value">finished_without_rspec</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">setup_mediator</td>
          <td>-&gt;</td>
          <td class="context-item-value">setup_mediator_without_rspec</td>
        </tr>
                        </table>
      </div>
    </div>


      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000618" class="method-detail">
        <a name="M000618"></a>

        <div class="method-heading">
          <span class="method-name">finished</span><span class="method-args">(elapsed_time)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="TestRunner.html#M000617">finished_with_rspec</a>
</p>
        </div>
      </div>

      <div id="method-M000617" class="method-detail">
        <a name="M000617"></a>

        <div class="method-heading">
          <a href="#M000617" class="method-signature">
          <span class="method-name">finished_with_rspec</span><span class="method-args">(elapsed_time)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000617-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000617-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb, line 38</span>
38:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finished_with_rspec</span>(<span class="ruby-identifier">elapsed_time</span>)
39:             <span class="ruby-ivar">@ran_test</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">false</span>
40:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@ran_test</span>
41:               <span class="ruby-identifier">finished_without_rspec</span>(<span class="ruby-identifier">elapsed_time</span>)
42:             <span class="ruby-keyword kw">end</span>
43:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000620" class="method-detail">
        <a name="M000620"></a>

        <div class="method-heading">
          <span class="method-name">setup_mediator</span><span class="method-args">()</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="TestRunner.html#M000619">setup_mediator_with_rspec</a>
</p>
        </div>
      </div>

      <div id="method-M000619" class="method-detail">
        <a name="M000619"></a>

        <div class="method-heading">
          <a href="#M000619" class="method-signature">
          <span class="method-name">setup_mediator_with_rspec</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000619-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000619-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb, line 47</span>
47:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_mediator_with_rspec</span>
48:             <span class="ruby-identifier">orig_io</span> = <span class="ruby-ivar">@io</span>
49:             <span class="ruby-ivar">@io</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
50:             <span class="ruby-identifier">setup_mediator_without_rspec</span>
51:           <span class="ruby-keyword kw">ensure</span>
52:             <span class="ruby-ivar">@rspec_io</span> = <span class="ruby-ivar">@io</span>
53:             <span class="ruby-ivar">@io</span> = <span class="ruby-identifier">orig_io</span>
54:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000612" class="method-detail">
        <a name="M000612"></a>

        <div class="method-heading">
          <span class="method-name">started</span><span class="method-args">(result)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="TestRunner.html#M000611">started_with_rspec</a>
</p>
        </div>
      </div>

      <div id="method-M000611" class="method-detail">
        <a name="M000611"></a>

        <div class="method-heading">
          <a href="#M000611" class="method-signature">
          <span class="method-name">started_with_rspec</span><span class="method-args">(result)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000611-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000611-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb, line 10</span>
10:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">started_with_rspec</span>(<span class="ruby-identifier">result</span>)
11:             <span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
12:             <span class="ruby-ivar">@need_to_output_started</span> = <span class="ruby-keyword kw">true</span>
13:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000616" class="method-detail">
        <a name="M000616"></a>

        <div class="method-heading">
          <span class="method-name">test_finished</span><span class="method-args">(name)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="TestRunner.html#M000615">test_finished_with_rspec</a>
</p>
        </div>
      </div>

      <div id="method-M000615" class="method-detail">
        <a name="M000615"></a>

        <div class="method-heading">
          <a href="#M000615" class="method-signature">
          <span class="method-name">test_finished_with_rspec</span><span class="method-args">(name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000615-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000615-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb, line 31</span>
31:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_finished_with_rspec</span>(<span class="ruby-identifier">name</span>)
32:             <span class="ruby-identifier">test_finished_without_rspec</span>(<span class="ruby-identifier">name</span>)
33:             <span class="ruby-ivar">@ran_test</span> = <span class="ruby-keyword kw">true</span>
34:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000614" class="method-detail">
        <a name="M000614"></a>

        <div class="method-heading">
          <span class="method-name">test_started</span><span class="method-args">(name)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="TestRunner.html#M000613">test_started_with_rspec</a>
</p>
        </div>
      </div>

      <div id="method-M000613" class="method-detail">
        <a name="M000613"></a>

        <div class="method-heading">
          <a href="#M000613" class="method-signature">
          <span class="method-name">test_started_with_rspec</span><span class="method-args">(name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000613-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000613-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb, line 17</span>
17:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_started_with_rspec</span>(<span class="ruby-identifier">name</span>)
18:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@need_to_output_started</span>
19:               <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@rspec_io</span>
20:                 <span class="ruby-ivar">@rspec_io</span>.<span class="ruby-identifier">rewind</span>
21:                 <span class="ruby-identifier">output</span>(<span class="ruby-ivar">@rspec_io</span>.<span class="ruby-identifier">read</span>)
22:               <span class="ruby-keyword kw">end</span>
23:               <span class="ruby-identifier">output</span>(<span class="ruby-value str">&quot;Started&quot;</span>)
24:               <span class="ruby-ivar">@need_to_output_started</span> = <span class="ruby-keyword kw">false</span>
25:             <span class="ruby-keyword kw">end</span>
26:             <span class="ruby-identifier">test_started_without_rspec</span>(<span class="ruby-identifier">name</span>)
27:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>